package com.jiepu.daily.corejava.advanceed.part6thread;

/**
 * @Description:
 * @author: xinjie.txt
 * @date: 2020/7/29  15:38
 */
public class MyRunnable implements Runnable {
	private  int ticket = 100;

	@Override
	public void run() {
		while (ticket > 0) {
			System.out.println( getClass().getName()+"  The rest tickets: " + --ticket);
		}
	}
}
